package yf.mall.vo.down;


import lombok.Data;
import java.util.Date;
import com.alibaba.excel.annotation.*;
import java.io.Serializable;



import yf.mall.entity.LotteryCountEntity;
import yf.mall.vo.LotteryCountVo;

                
/**
 * 抽奖机会实体
 * 表名 lottery_count
 *
 * @author hxf
 * @email 505860922@qq.com
 * @date Thu Aug 20 17:10:40 CST 2020
 */
@Data
public class LotteryCountDown implements Serializable {
    @ExcelIgnore
    private static final long serialVersionUID = 1L;

                        //
            @ExcelProperty("")
            private Long id;
        
                        //活动ID
            @ExcelProperty("活动ID")
            private Long actId;
        
                        //用户id
            @ExcelProperty("用户id")
            private Long userId;
        
                        //剩余机会
            @ExcelProperty("剩余机会")
            private Integer amount;
        
    
    public LotteryCountDown() {

    }

    public LotteryCountDown(LotteryCountVo vo) {
        LotteryCountEntity entity = vo.getEntity();
                                    this.setId(entity.getId());
            
                                    this.setActId(entity.getActId());
            
                                    this.setUserId(entity.getUserId());
            
                                    this.setAmount(entity.getAmount());
            
            }


}
